package data

import (
	"fmt"

	"github.com/treelab/updatecolumn/models"
)

//LookupResult for Cell
type LookupResult struct {
	LookupCells []models.Cell
}

//GetLookupQueryString for  dql Query
func GetLookupQueryString(pageSize int, offset int) string {
	return fmt.Sprintf(`
		{
			lookupCells(func:eq(cellType, "LOOKUP"), first:%d, offset:%d) {
				uid
				Cells: has_lookup_cell {
					uid
				}
			}
		}
		`, pageSize, offset)
}
